<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>
<%@ taglib tagdir="/WEB-INF/tags/" prefix="ag"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<!-- Variables de redirections struts -->
<ag:urls />

<!-- Css -->
<link href="<s:url value="/assets/css/bootstrap.css"/>" rel="stylesheet"
	type="text/css">
<link href="<s:url value="/assets/css/style.css"/>" rel="stylesheet"
	type="text/css">
<link href="<s:url value="/assets/font-awesome/css/font-awesome.css"/>"
	rel="stylesheet" type="text/css">
<link href="<s:url value="/assets/css/style-responsive.css"/>"
	rel="stylesheet" type="text/css">
<link href="<s:url value="/assets/css/dev/administrerAsso.css"/>"
	rel="stylesheet" type="text/css">

<!-- JS -->
<script src="<s:url value="/assets/js/jquery.js"/>"></script>
<script
	src="<s:url value="/assets/js/agraf/administrer/adminAsso.js"/>"></script>

<title>Admin Associations</title>
</head>
<body>
	<section id="contenair"> <ag:header /> <ag:menu /> </section>

	<section id="main-content"> <section class="wrapper">
	<div class="col-md-12">
		<div class="content-panel">
			<h4>Administrer les associations profil utilisateur <img
					src="<s:url value="/assets/img/get_info.png"/>" id="getInfoPage"></h4>
			<hr>

			<div id="divTableauUtilisateur">
				<table class="table table-striped table-advance table-hover">
					<thead>
						<tr>
							<th>Utilisateur</th>
							<th class="hidden-phone">Profils</th>
							<th>Actions</th>
						</tr>
					</thead>
					<tbody>
						<s:iterator value="utilisateurList" var="utilisateur">
							<tr>
								<td>${utilisateur.nom} ${utilisateur.prenom}</td>
								<td class="hidden-phone">
									<s:iterator value="listeProfilDTO" var="profil" status="itStatus">
									<c:choose>
									      <c:when test="${ itStatus.first}">
									      ${profil.libelle }
									      </c:when>
									      <c:otherwise>
									      , ${profil.libelle }
									      </c:otherwise>
									</c:choose>
									</s:iterator>
								</td>
								<td>
									<button class="btn btn-primary btn-xs"
										onclick="modifier_popup(${utilisateur.id},'${utilisateur.nom }','${utilisateur.prenom }')">
										<i class="fa fa-pencil"></i>

									</button>
								</td>
							</tr>
						</s:iterator>
					</tbody>
				</table>
						<s:actionerror />
			</div>
		</div>
		<!-- /content-panel -->
	</div>


	</section> </section>
	<ag:popupNotification />
	<ag:popupModifierAsso/>
	<ag:popupInfoPage />
	<ag:ajoutJs />
</body>
</html>